//
//  SCOtherTravelCollectionViewCell.m
//  LastOne
//
//  Created by dllo on 15/11/7.
//  Copyright © 2015年 sc. All rights reserved.
//

#import "SCOtherTravelCollectionViewCell.h"
#import "NightHeader.h"
#import "FitHeader.h"
@implementation SCOtherTravelCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        _label1 = [[UILabel alloc] initWithFrame:CGRectMake(10 * FitWidth, 0, frame.size.width - 10 * FitWidth, 30 * FitHeight)];
        _label1.font = [UIFont systemFontOfSize:20 * FitWidth];
        [_label1 NightWithType:UIViewColorTypeNormal];
        [self addSubview:_label1];
        
        _label2 = [[UILabel alloc] initWithFrame:CGRectMake(_label1.frame.origin.x, _label1.frame.origin.y + _label1.frame.size.height, _label1.frame.size.width, 20 * FitHeight)];
        _label2.font = [UIFont systemFontOfSize:13 * FitWidth];
        _label2.textColor = [UIColor grayColor];
        [self addSubview:_label2];
    }
    return self;
}

-(void)setCity:(SCDesCity *)city
{
    if (_city != city) {
        _city = city;
    }
    _label1.text = city.cnname;
    _label2.text = city.enname;
}

@end
